// **********************************************************************
//
// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

// Ice version 3.3.0

package CustomerRelationsManagement;

/**
 *
 * @author Administrator
 */
public interface _orderOperations
{
    /**
     *
     * @param __current
     * @return
     * @throws CustomerRelationsManagement.RecordNotCommitted
     */
    int getId(Ice.Current __current)
        throws RecordNotCommitted;

    /**
     *
     * @param __current
     * @throws CustomerRelationsManagement.DBError
     */
    void save(Ice.Current __current)
        throws DBError;

    /**
     *
     * @param __current
     * @throws CustomerRelationsManagement.DBError
     * @throws CustomerRelationsManagement.RecordNotCommitted
     */
    void delete(Ice.Current __current)
        throws DBError,
               RecordNotCommitted;

    /**
     *
     * @param __current
     * @return
     */
    int getCustomer(Ice.Current __current);

    /**
     *
     * @param CustomerId
     * @param __current
     */
    void setCustomer(int CustomerId, Ice.Current __current);

    /**
     *
     * @param __current
     * @return
     */
    String getSrc(Ice.Current __current);

    /**
     *
     * @param __current
     * @return
     */
    String getDst(Ice.Current __current);

    /**
     *
     * @param src
     * @param __current
     */
    void setSrc(String src, Ice.Current __current);

    /**
     *
     * @param dst
     * @param __current
     */
    void setDst(String dst, Ice.Current __current);

    /**
     *
     * @param __current
     * @return
     */
    float getWeight(Ice.Current __current);

    /**
     *
     * @param weight
     * @param __current
     */
    void setWeight(float weight, Ice.Current __current);

    /**
     *
     * @param __current
     * @return
     */
    datetime getDeadline(Ice.Current __current);

    /**
     *
     * @param deadline
     * @param __current
     */
    void setDeadline(datetime deadline, Ice.Current __current);

    /**
     *
     * @param __current
     * @return
     */
    OrderStatus getStatus(Ice.Current __current);

    /**
     *
     * @param status
     * @param __current
     */
    void setStatus(OrderStatus status, Ice.Current __current);
}
